/**
 * 下载内容页面样式
 */
.downloading-content {
  padding: 24px;
  background: #fff;

  .header-downloading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;

    .page-title {
      margin-bottom: 0;
      color: #1f1f1f;
      font-weight: 500;
    }
  }

  .task-list {
    .ant-list-item {
      padding: 16px;
      border-radius: 8px;
      border: 1px solid #f0f0f0;
      margin-bottom: 12px;
      transition: all 0.3s ease;

      &:last-child {
        margin-bottom: 0;
      }

      &:hover {
        background-color: #fafafa;
        border-color: #e6e6e6;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      }
    }
  }

  .task-item {
    width: 100%;

    .task-info {
      display: flex;
      align-items: center;
      margin-bottom: 12px;

      .ant-typography {
        margin-bottom: 0;
        flex: 1;
        margin-right: 16px;
      }

      .task-size {
        margin-left: 16px;
        flex-shrink: 0;
        color: #8c8c8c;
        min-width: 80px;
      }

      .ant-tag {
        margin-left: 16px;
        flex-shrink: 0;
      }

      .task-controls {
        margin-left: 8px;
        flex-shrink: 0;
        display: flex;
        gap: 4px;
        
        .ant-btn {
          border: none;
          box-shadow: none;
          padding: 0;
          height: auto;
          line-height: 1;

          &:hover {
            background-color: #f5f5f5;
          }

          .anticon {
            font-size: 16px;
          }

          &.delete-task-btn {
            &:hover {
              background-color: #fff2f0;
              
              .anticon {
                color: #ff4d4f;
              }
            }
          }
        }
      }
    }

    .task-bottom {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      position: relative;

      .task-status {
        flex: 1;
        margin-right: 16px;
      }

      .task-time {
        flex-shrink: 0;
        text-align: right;

        .time-text {
          font-size: 12px;
          color: #8c8c8c;
          margin-bottom: 0;
        }
      }
    }

    .ant-progress {
      width: 100%;

      &.ant-progress-status-active {
        .ant-progress-bg {
          background: #1890ff;
        }
      }
    }

    .pending-status {
      display: flex;
      align-items: center;

      .ant-typography {
        &.ant-typography-warning {
          color: #faad14;
        }
      }
    }

    .paused-status {
      display: flex;
      flex-direction: column;
      width: 100%;

      .ant-typography {
        margin-bottom: 8px;

        &.ant-typography-warning {
          color: #faad14;
        }
      }

      .ant-progress {
        margin-bottom: 0;
      }
    }

    .ant-typography {
      &.ant-typography-warning {
        color: #faad14;
      }

      &.ant-typography-success {
        color: #52c41a;
      }

      &.ant-typography-danger {
        color: #ff4d4f;
      }
    }
  }

  .ant-empty {
    margin: 64px 0;

    .empty-text {
      font-size: 14px;
      color: #8c8c8c;
    }
  }
}
